﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.MES.Customer.Domain
{
    /// <summary>
    /// Bom表
    /// </summary>
    [SugarTable("BomTab")]
    public class BomTab
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)] // BOMID，主键自增
        public int BOMID { get; set; }

        public string? BOMNum { get; set; } // BOM编号
        public string? BOMTopic { get; set; } // BOM主题
        public string ?Versions { get; set; } // 版本
        public string ?ArtifactType { get; set; } // 成品类型
        public int DailyOutput { get; set; } // 日产量
        public string? ArtifactName { get; set; } // 成品名称
        public string ?Remark { get; set; } // 备注
        public int? Quantity { get; set; } // 组成数量
        public int? ParentProductId { get; set; }//(外键，指向产品表的ProductId)
        public int? ChildProductId { get; set; }//(外键，指向物料表的MaterialId)
    }
}
